#!/usr/bin/env python
"""
# -*- coding: utf-8 -*-
# @Time    : 2020/10/14 14:43
# @Author  : AshJo
# @Desc    : asyncio模块
# @Filename: asyncio_demo.py.py
# @Version : v1.0
"""

import asyncio


async def func(name):
    print('start func', name)
    await asyncio.sleep(1)
    print('end')


loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.wait([func('alex'), func('cindy')]))
